
testability = I../../eth-core-infrastructure/control-channel/inc
AbstractionAPI = I../../eth-core-infrastructure/network-stack-abstraction/pub

all:
	$(CXX) -shared -o libARPModule.so src/*.cpp  -$(testability) -$(AbstractionAPI) -Iinc -Ipub -std=c++11 -fPIC -fpermissive
#	cp ./pub/* ../../frontend-com-module/com-module/LinuxComModule/inc/TC8-ARP

install: libARPModule.so
	sudo cp libARPModule.so /usr/lib1

uinstall:
	sudo rm -rf /usr/lib1/libARPModule.so

tests:
	$(CXX)  -g -std=c++11 test/main.cpp -$(AbstractionAPI) -Ipub -Iinc -I../../eth-core-infrastructure/control-channel/inc -L/usr/lib -lARPModule -lAbstractionAPI -lTestabilityProtocol -o main 

clean:
	rm -rf bin *.o *.so main
